//
//  SEGIAnalyticsLogErrorModel.m
//  test
//
//  Created by 刘山 on 2017/11/28.
//  Copyright © 2017年 刘山. All rights reserved.
//

#import "SEGIAnalyticsLogErrorModel.h"

@implementation SEGIAnalyticsLogErrorModel
-(instancetype)init{
    if (self == [super init]) {
        _pf = @"";
        _id = @"";
        _dvcCode = @"";
        _dvcType = @"";
        _dvcBrd = @"";
        _dvcVer = @"";
        _dvcSys = @"";
        _dvcSysVer = @"";
        _pfVer = @"";
        _network = @"";
        _createTime = @"";
        _digest = @"";
        _stacktrace = @"";
    }
    return self;
}

- (void)setStacktrace:(NSString *)stacktrace
{
    NSData *encodeData = [stacktrace dataUsingEncoding:NSUTF8StringEncoding];
    NSString *base64String = [encodeData base64EncodedStringWithOptions:0];
    _stacktrace = base64String;
}

- (void)setDigest:(NSString *)digest
{
    NSData *encodeData = [digest dataUsingEncoding:NSUTF8StringEncoding];
    NSString *base64String = [encodeData base64EncodedStringWithOptions:0];
    _digest = base64String;
}
@end
